package main

import (
	"database/sql"
	_ "github.com/mattn/go-sqlite3"
	log "github.com/sirupsen/logrus"
)

func main() {
	// 创建一个新的SQLite数据库文件
	db, err := sql.Open("sqlite3", "./shunfeng.db")
	if err != nil {
		log.Fatal(err)
	}

	result, err := db.Exec("INSERT INTO task VALUES (NULL,?,?,?)", "2", "3", "4")
	if err != err {
		log.Fatal(err)
	}

	defer db.Close()
	log.Info("success:", result)

}
